//
//  LGKNoteUploadModel.m
//  LGKNote
//
//  Created by 刘亚军 on 2023/5/30.
//

#import "LGKNoteUploadModel.h"

@implementation LGKNoteUploadModel
- (NSString *)uuid{
    CFUUIDRef uuidRef = CFUUIDCreate(nil);
    CFStringRef uuidString = CFUUIDCreateString(nil, uuidRef);
    NSString *uuid = (__bridge NSString *)uuidString;
    CFRelease(uuidString);
    CFRelease(uuidRef);
    return uuid;
}
+ (id)jsonObject:(NSString *)jsonString{
    NSError *error = nil;
    if (jsonString == NO) {
        return nil;
    }
    id result = [NSJSONSerialization JSONObjectWithData:[jsonString dataUsingEncoding:NSUTF8StringEncoding]
                                                options:NSJSONReadingMutableContainers
                                                  error:&error];
    if (error || [NSJSONSerialization isValidJSONObject:result] == NO){
        return nil;
    }
    return result;
}
@end
